//
//  HLHomeCollectionViewCell.m
//  HanlinWeather
//
//  Created by 任翰林 on 2017/2/21.
//  Copyright © 2017年 任翰林. All rights reserved.
//

#import "HLHomeCollectionViewCell.h"
#import <Masonry.h>
#import "HLHomeTableView.h"
@implementation HLHomeCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if ( [super initWithFrame:frame]) {
        
        
        HLLog(@"hanlin");
        [self setUpUI];
        
    }
    return self;
}

- (void)setUpUI
{

    HLHomeTableView * tabView = [HLHomeTableView new];
    tabView.homeTablePushBlock = ^(NSInteger section,NSInteger row){
        self.homePushBlock(section, row);//点击cell跳转页面
    };
    [self addSubview:tabView];
    [tabView mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.edges.equalTo(@0);
        
    }];
    
}


@end
